package com.ciaojian.bytedance.vo.bytedance;

import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Data
public class QueryRefundVo implements Serializable {

    /**
     * err_tips : success
     * data : {"refund_status":"SUCCESS","out_refund_no":"202302231255059U176201192","refund_at":1677387581000,"merchant_audit_detail":{"deny_message":"","need_refund_audit":1,"refund_audit_deadline":1677387536456,"audit_status":"OVERTIME"},"message":"","item_order_detail":[{"refund_amount":1700,"item_order_id":"ots72032103079535762295015"}],"order_id":"ots72032103079535434615015","refund_id":"ots72032095413815401565015","refund_total_amount":1700}
     * resp_extra : {"logid":"20230228102310917C77595CAE9B0501DC"}
     * err_no : 0
     */

    private String err_tips;
    private DataBean data;
    private RespExtraBean resp_extra;
    private int err_no;

    @Data
    public static class DataBean implements Serializable {
        /**
         * refund_status : SUCCESS
         * out_refund_no : 202302231255059U176201192
         * refund_at : 1677387581000
         * merchant_audit_detail : {"deny_message":"","need_refund_audit":1,"refund_audit_deadline":1677387536456,"audit_status":"OVERTIME"}
         * message :
         * item_order_detail : [{"refund_amount":1700,"item_order_id":"ots72032103079535762295015"}]
         * order_id : ots72032103079535434615015
         * refund_id : ots72032095413815401565015
         * refund_total_amount : 1700
         */

        private String refund_status;
        private String out_refund_no;
        private long refund_at;
        private MerchantAuditDetailBean merchant_audit_detail;
        private String message;
        private String order_id;
        private String refund_id;
        private int refund_total_amount;
        private List<ItemOrderDetailBean> item_order_detail;

        @Data
        public static class MerchantAuditDetailBean implements Serializable {
            /**
             * deny_message :
             * need_refund_audit : 1
             * refund_audit_deadline : 1677387536456
             * audit_status : OVERTIME
             */

            private String deny_message;
            private int need_refund_audit;
            private long refund_audit_deadline;
            private String audit_status;
        }

        @Data
        public static class ItemOrderDetailBean implements Serializable {
            /**
             * refund_amount : 1700
             * item_order_id : ots72032103079535762295015
             */

            private int refund_amount;
            private String item_order_id;
        }
    }

    @Data
    public static class RespExtraBean implements Serializable {
        /**
         * logid : 20230228102310917C77595CAE9B0501DC
         */

        private String logid;
    }
}
